package com.zut.service.Impl;

import com.zut.dao.AdminDao;
import com.zut.pojo.Admin;
import com.zut.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminDao adminDao;
    // admin用户登录
    @Override
    public Admin login(String name, String password) {
        System.out.println("哈哈哈哈哈");
        return adminDao.selectByNameAndPassword(name,password);
    }

    // 添加类型
    @Override
    public Integer addType(String typeName, String detail) {
        return adminDao.addType(typeName,detail);
    }
}
